<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @font-face {
            font-family: 'my-new-font';
            /*字体名称*/
            src: url('./ds_digital/DS-DIGIB.TTF');
            /*字体源文件*/
        }

        .fon {
            font-family: my-new-font;
            font-size: 50px;
            margin: 10px 0;
            text-align: center;
        }
        .fon#week {
            font-size: 30px;
        }

        .center {
            display: flex;
            align-items: center;
            justify-content: center;
        }
    </style>
</head>

<body>
    <div class="center">
        <div>
            <p class="fon" id="ymd">2020年2月2日</p>
            <p class="fon" id="time">23:23</p>
            <p class="fon" id="week">星期几</p>
        </div>
    </div>
    
    <p class="center">
        <a href="https://gitee.com/duanjinqiu/fontAngTime">访问我的gitee仓库地址</a>
    </p>

    <script src="./index.js"></script>
</body>

</html>